
class Compose:
    def __init__(self, *transform_list):
        self.transform_list = transform_list

    def __call__(self, image, params=None):
        for preprocess in self.transform_list:
            image = preprocess(image, params=params)

        return image
